// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

namespace SnapObjects.Data
{
    /// <summary>
    ///     Provides a series of properties for getting the result of saving the data changes to the database.
    /// </summary>
    public interface IDbResult
    {
        /// <summary>
        ///     Gets the amount of rows that are inserted when saving the data changes to the database.
        /// </summary>
        int InsertedCount { get; }

        /// <summary>
        ///     Gets the amount of rows that are deleted when saving the data changes to the database.
        /// </summary>
        int DeletedCount { get; }

        /// <summary>
        ///     Gets the amount of rows that are modified when saving the data changes to the database.
        /// </summary>
        int ModifiedCount { get; }

        /// <summary>
        ///     Gets the amount of rows that are affected when saving the data changes to the database.
        /// </summary>
        int AffectedCount { get; }

        /// <summary>
        ///     Gets whether the operation is cancelled when saving the data changes to the database.
        /// </summary>
        bool Cancelled { get; }
    }
}
